const express = require("express");
const router = express.Router();
const courseController = require("../controller/course");

// 查询考试批次
router.get("/getExamBatch", courseController.getExamBatch);
// 查询考试科目及成绩
router.post("/getExamSubject", courseController.getExamSubject);
// 新增考试批次
router.post("/addExamBatch", courseController.addExamBatch);
// 批量录入成绩
router.post("/addScore", courseController.addScore);
// 修改考试
router.post("/updateExam", courseController.updateExam);
// 删除考试
router.post("/deleteExam", courseController.deleteExam);
// 查询考试成绩 by student_id
router.get("/getStudentScore/:id?", courseController.getStudentScore);

module.exports = router;
